/**
 * 공통 코드를 코드명으로 전환
 */
function codename(code) {
	if (code.length != 8) {
		document.write(code);
		return;
	}
	var group_code = code.substring(0, 6);
	var detail_code = code.substring(6, 8);
	window['codename_' + group_code](detail_code);
}

function codename_US0009(code) {
	var name = new Array();
	name[1] = "개인사업자";
	name[2] = "법인사업자";
	name[3] = "간이과세자";
	name[4] = "개인";
	document.write(name[parseInt(code)]);
}

function codename_US0015(code) {
	var name = new Array();
	name[1] = "유료전환";
	name[2] = "개인사업자가입";
	name[3] = "법인사업자가입";
	name[4] = "개인사업자전환";
	name[5] = "법인사업자전환";
	name[6] = "사업자간전환";
	name[7] = "해외개발자전환";
	document.write(name[parseInt(code)]);
}

function codename_US0019(code) {
	var name = new Array();
	name[1] = "사업자등록증사본";
	name[2] = "법인명의통장사본";
	name[3] = "법인(개인)인감증명서원본";
	name[4] = "통신판매업 신고증 사본";
	name[5] = "외국인서류1";
	name[6] = "외국인서류2";
	document.write(name[parseInt(code)]);
}

function codename_US0101(code) {
	var name = new Array();
	name[1] = "개인";
	name[2] = "개인사업자";
	name[3] = "법인사업자";
	document.write(name[parseInt(code)]);
}

function codename_US0102(code) {
	var name = new Array();
	name[1] = "정상";
	name[2] = "탈퇴";
	name[3] = "대기(가가입)";
	name[4] = "일시정지";
	document.write(name[parseInt(code)]);
}

function codename_US0103(code) {
	var name = new Array();
	name[1] = "정상";
	name[2] = "탈퇴신청";
	name[3] = "탈퇴완료";
	name[4] = "이메일승인 만료";
	name[5] = "정산정보승인 대기";
	name[6] = "이메일승인 대기";
	name[7] = "계정잠금";
	name[8] = "7일이용정지";
	name[9] = "30일이용정지";
	name[10] = "영구이용정지";
	name[11] = "개발자유형전환 신청";
	name[12] = "개발자유형전환 재신청";
	name[13] = "개발자유형전환 거절";
	name[14] = "변동처리대상";
	name[15] = "정산정보승인 거절";
	name[16] = "탈퇴거절";
	name[17] = "ID재사용";
	name[18] = "가입재신청";
	name[19] = "준회원";
	document.write(name[parseInt(code)]);
}

function codename_US0104(code) {
	var name = new Array();
	name[1] = "ID 변경";
	name[2] = "판매 성과 부진";
	name[3] = "정산에 대한 불신";
	name[4] = "장기간 부재(군입대, 유학)";
	name[5] = "마켓 변경";
	name[6] = "시스템 장애";
	name[7] = "개인정보 보안문제";
	name[8] = "기타";
	name[9] = "미방문";
	name[10] = "서비스 이용 불편";
	name[11] = "컨텐츠 부족";
	document.write(name[parseInt(code)]);
}

function codename_US0015(code) {
	var name = new Array();
	name[1] = "유료전환";
	name[2] = "개인사업자가입";
	name[3] = "법인사업자가입";
	name[4] = "개인사업자전환";
	name[5] = "법인사업자전환";
	name[6] = "사업자간전환";
	name[7] = "해외개발자전환";
	document.write(name[parseInt(code)]);
}

function codename_US0043(code) {
	if(code == 'ko')code = '1';
	if(code == 'en')code = '2';
	var name = new Array();
	name[1] = "한국어";
	name[2] = "영어";
	document.write(name[parseInt(code)]);
}

function codename_US0115(code) {
	var name = new Array();
	name[1] = "모바일회원";
	name[2] = "IDP회원";
	name[3] = "OneID회원";
	document.write(name[parseInt(code)]);
}

function codename_PD0021(code) {
	var name = new Array();
	name[1] = "176X220(QCIF)";
	name[2] = "480X640(VGA)";
	name[3] = "240X320(QVGA)";
	name[4] = "480X800(WVGA)";
	name[5] = "240X400(WQVGA)";
	name[6] = "345X800(WVGA)";
	name[7] = "600X1024(WSVGA, Phone)";
	name[8] = "320X480(HVGA)";
	name[9] = "540X960(QHD)";
	name[10] = "1280X768(WXGA, Tablet)";
	name[11] = "720X1280(HD, SmartPhone)";
	name[12] = "800X1280(WXGA, SmartPhone)";
	name[13] = "600X1024(WSVGA, Tablet)";
	name[14] = "1080x1920(Full HD, Tablet)";
	name[15] = "1080x1920(Full HD, SmartPhone)";
	name[16] = "2560x1600(WQXGA, SmartPhone)";
	document.write(name[parseInt(code)]);
}

function codename_PD0004(code) {
	var name = new Array();
	name[1] = "등록중";
	name[2] = "판매대기";
	name[3] = "판매중";
	name[4] = "판매중지";
	name[5] = "판매불가";
	name[6] = "해지요청";
	name[7] = "일시정지";
	name[8] = "판매삭제";
	name[9] = "판매불가-다운허용";
	name[10] = "해지 요청-다운로드 가능";
	document.write(name[parseInt(code)]);
}

function codename_DP0069(code) {
	var name = new Array();
	name[1] = "구매완료";
	name[2] = "발급대기";
	name[3] = "발급중";
	name[5] = "발급실패";
	name[6] = "발급완료";
	name[7] = "삭제";
	document.write(name[parseInt(code)]);
}

function codename_DE1202(code) {
	var name = new Array();
	name[1] = "방송";
	name[2] = "영화";
	name[3] = "만화";
	name[4] = "이북";
	name[5] = "잡지";
	name[6] = "웹툰";
	name[7] = "연재소설";
	document.write(name[parseInt(code)]);
}

function codename_US0006(code) {
	var name = new Array();
	name[1] = "간이과세자";
	name[2] = "신고준비중";
	name[3] = "구매목적";
	name[4] = "사업중단(폐업,휴업)";
	name[3] = "비영리단체";
	name[3] = "기타";
	document.write(name[parseInt(code)]);
}